export default {
    /**
     * 根据获取地址栏参数variable值，若没有，则返回false
     * @param variable
     * @returns {*}
     */
    getQueryVariable (variable) {
        var query = window.location.hash.substr(window.location.hash.indexOf('?') + 1);
        var vars = query.split("&");
        for (var i=0;i<vars.length;i++) {
            var pair = vars[i].split("=");
            if(pair[0] == variable){return pair[1];}
        }
        return(false);
    }
}